import {
	http
} from '@/service/index.js'
import store from '@/store/index.js'
import configs from '@/config/index.js'



// 签到
export const signIn = async (data, config = {}) => {
	return await http.post(`/taskcenter/signIn`, {
		codeId: data
	}, config)
}

export const addVideoBehavior = async (data, config = {}) => {
	return await http.post(`/taskcenter/addVideoBehavior`, {
		codeId: data
	}, config)
}

export const receiveAward = async (data, config = {}) => {
	return await http.post(`/taskcenter/receiveAward`, data, config)
}
export const getUserSignRecord = async (data, config = {}) => {
	return await http.get(`/taskcenter/getUserSignRecord`, data, config)
}
export const getUserBehaviorRecord = async (data, config = {}) => {
	return await http.get(`/taskcenter/getUserBehaviorRecord`, data, config)
}

export const getGrowUpTaskListPage = async (data, config = {}) => {
	return await http.get(`/taskcenter/getGrowUpTaskListPage`, data, config)
}

export const getEveryDayTaskListPage = async (data, config = {}) => {
	return await http.get(`/taskcenter/getEveryDayTaskListPage`, data, config)
}

export const getTimeLimitTaskListPage = async (data, config = {}) => {
	return await http.get(`/taskcenter/getTimeLimitTaskListPage`, data, config)
}

export const checkUserVideoTaskByDay = async (data, config = {}) => {
	return await http.get(`/taskcenter/checkUserVideoTaskByDay`, data, config)
}
